﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace StuApart
{
    public partial class frmStudent : Form
    {
        public frmStudent()
        {
            InitializeComponent();
        }

        private void 退出系统ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Dispose();
            this.Close();
            Application.Exit();
        }

        private void frmStudent_Load(object sender, EventArgs e)
        {
            toolStripStatusLabel2.Text = "当前登录用户：" + Common.DataBase.userName;
            toolStripStatusLabel3.Text = "当前日期：" + DateTime.Now.ToShortDateString();
        }

        private void toolStripMenuItem15_Click(object sender, EventArgs e)
        {
            StudentInCheck StudentInCheck = new StudentInCheck();
            StudentInCheck.Owner = this;
            StudentInCheck.Show();
        }

        private void toolStripMenuItem16_Click(object sender, EventArgs e)
        {
            StudentCheck StudentCheck = new StudentCheck();
            StudentCheck.Owner = this;
            StudentCheck.Show();
        }
    }
}
